<template>
  <ul>
    <li v-for="item in imageList">
      <!-- <h1>{{ item.title }}</h1> -->
      <!-- <img :src="item.image" alt="" /> -->
    </li>
  </ul>
</template>

<script>
import axios from 'axios';
export default {
  name: 'HelloWorld',
  data() {
    return {
      imageList: '',
    };
  },
  created() {
    axios({
      url: 'http://123.207.32.32:8000/home/multidata',
    }).then((res) => {
      console.log(res);
      this.imageList = res.data.data.banner.list;
    });
  },
};
</script>

<style>
ul {
  width: 100%;
  height: 330px;
  display: flex;
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
li h1 {
  height: 30px;
  line-height: 30px;
  font-size: 20px;
  color: #f00;
}
li img {
  width: 100%;
  height: 100%;
}
</style>